<template>
	<view>
		<view class="item">
			<text>姓名</text>
			<input value="" type="text" placeholder="*强" />
		</view>
		<view class="item">
			<text>性别</text>
			<input value="" type="text" placeholder="男" />
		</view>
		<view class="item" style="border: none;">
			<text>国籍</text>
			<input value="" type="text" placeholder="中国大陆" />
		</view>
		<u-cell style="background-color: #f2f2f2;"></u-cell>
		<view class="item">
			<text>证件类型</text>
			<view style="display: flex;justify-content: flex-end;align-items: center;">
				<input value="" type="text" placeholder="居民身份证" />
				<u-icon name="arrow-right"></u-icon>
			</view>

		</view>
		<view class="item">
			<text>证件号</text>
			<input value="" type="text" :placeholder="tt(a)" />
		</view>
		<view class="item">
			<text>到期时间</text>
			<view style="display: flex;justify-content: flex-end;align-items: center;">
				<input value="" type="text" placeholder="2026.12.30" />
				<u-icon name="arrow-right"></u-icon>
			</view>
		</view>
		<view style="position: fixed;bottom: 0;width: 100%;">
			<button style="margin: 20rpx;" type="primary">保存</button>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				a: '430381200204250054'
			}
		},
		methods: {
			tt(a) {
				var b = ''
				for (let i = 0; i < a.length - 2; i++) {
					b += '*'
				}
				return a.substring(0, 1) + b + a.substring(a.length - 1, a.length)
			}
		}
	}
</script>

<style>
	.item {
		display: flex;
		justify-content: space-between;
		align-items: center;
		text-align: end;
		padding-right: 30rpx;
		margin-left: 30rpx;
		line-height: 100rpx;
		border-bottom: #d4d4d4 1rpx solid;
	}
</style>
